package com.yhd.facade;

import org.junit.Test;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description TODO
 * @since 2021/5/21 下午4:49
 */
public class MainTest {

    /**
     * 设计模式之门面模式
     * 需求：一晚上约三个妹子
     * 一个一个约
     * 门面模式：一窝端
     */
    @Test
    public void test(){
        GirlOne one = new GirlOne();
        GirlTwo two = new GirlTwo();
        GirlThree three = new GirlThree();
        one.papapa("张三");
        two.papa("张三");
        three.kuaile("张三");
    }

    @Test
    public void testA(){
        BaoShiJie panameila = new BaoShiJie();
        panameila.happy();
    }
}
